<?php
	//Check to see if there is a valid session 
	$SessionInfo = $SSO->isValidSession("index.php?action=login", $SSO->getSessionInformation());	
	
	//Check to see if the user has rights to be on LivingWeb
	$PageRights = array('ADMIN', 'USER');
	$UserRoles = $Security->ValidateUser($SessionInfo['username'], $AppID, $PageRights, 1);
	
	//Grab the user info
	$UserInfo = $User->GetUserInfo($SessionInfo['username']);	
?>
<table cellpadding="5" cellspacing="0" style="border:1px solid #D8DA85;" width="100%">
	<tr>
		<td>
			<table cellpadding="3" cellspacing="0" width="100%" style="border-bottom:3px double #D8DA85;">
				<tr>
					<td><span class="TB1">Content Block</span></td>
					<td valign="middle" align="middle"><?php print '<a href="/index.php?PID=' . $_GET['PID'] . '" class="L1">View Page</a>'; ?></td>
					<td align="right"><a class="L1" href="index.php?action=edit&edit_action=edit_content&PID=<?php print $_GET['PID']; ?>">Edit Content</a></td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td style="width:700px;"><span class="T1"><?php print $row['Content']; ?></span></td>
	</tr>
</table>
